﻿<Window x:Class="ThreadingSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        
        <ToolBarPanel Grid.Row="0" >
            <Grid >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="Auto" />
                </Grid.ColumnDefinitions>

                <TextBlock Grid.Column="0" Margin="5" Text="Select a Thread Model : " HorizontalAlignment="Center" VerticalAlignment="Center" />

                <!--http://msdn.microsoft.com/en-us/library/dd460693.aspx-->
                <ComboBox Grid.Column="1" Margin="5" HorizontalAlignment="Stretch" VerticalAlignment="Center" >
                    <ComboBoxItem Selector.IsSelected="True" Content="TPL (.net 4.0)" />
                    <ComboBoxItem Content="Parallel LINQ (PLINQ) (.net 4.0)" />
                    <ComboBoxItem Content="Simple Threads and Threading (.net 1.1 and later)" />
                </ComboBox>

                <!--http://msdn.microsoft.com/en-us/library/dd460718.aspx-->
                <ComboBox Grid.Column="2" Margin="5" HorizontalAlignment="Stretch" VerticalAlignment="Center" >
                    <ComboBoxItem Content="Collection&lt;T&gt; (.net 1.0)" />
                    <ComboBoxItem Content="Dictionary&lt;TKey, TValue&gt; (.net 1.0)" />
                    <ComboBoxItem Content="Queue&lt;T&gt; (.net 1.0)" />
                    <ComboBoxItem Content="Stack&lt;T&gt; (.net 1.0)" />

                    <ComboBoxItem Content="Concurrent Collections - BlockingCollection&lt;T&gt; (.net 4.0)" />
                    <ComboBoxItem Content="Concurrent Collections - ConcurrentDictionary&lt;TKey, TValue&gt; (.net 4.0)" />
                    <ComboBoxItem Content="Concurrent Collections - ConcurrentQueue&lt;T&gt; (.net 4.0)" />
                    <ComboBoxItem Content="Concurrent Collections - ConcurrentStack&lt;T&gt; (.net 4.0)" />
                    <ComboBoxItem Content="Concurrent Collections - ConcurrentBag&lt;T&gt; (.net 4.0)" />

                </ComboBox>

                <Button Grid.Column="3" Content="Go" Width="50" Margin="5" HorizontalAlignment="Center" VerticalAlignment="Center" />
                
            </Grid>
        </ToolBarPanel>

        <WrapPanel Grid.Row="1" Name="wrapPanel1" />
        
    </Grid>
</Window>
